package com.superman.supermarket.client.constant;

/**
 * 退款状态
 * 
 * @author superman
 * @version 2018年8月21日上午12:03:41
 */
public class RefundStatusConstants {
	/** 退款申请中 */
	public final static int APPLICATING = 1;
	// -2.关闭退款，-1. 拒绝退款，0.退款成功，1.退款申请中，2.申请通过，请退货,3.申请通过，等待退款
	/** 关闭退款 */
	public final static int CLOSED = -2;
	/** 申请通过，请退货 */
	public final static int REFUND_GOODS = 2;
	/** 申请通过，等待退款 */
	public final static int REFUND_MONET = 3;
	/** 拒绝退款 */
	public final static int REFUSED = -1;
	/** 退款成功 */
	public final static int SUCCESS = 0;

	/**
	 * 返回描述
	 * 
	 * @author superman
	 * @version 2018年8月21日 上午12:05:30
	 * @param status
	 * @return
	 */
	public static String getDescByStatus(int status) {
		String text = "";
		switch (status) {
			case CLOSED:
				text = "关闭退款";
				break;
			case REFUSED:
				text = "拒绝退款";
				break;
			case SUCCESS:
				text = "退款成功";
				break;
			case APPLICATING:
				text = "退款申请中";
				break;
			case REFUND_GOODS:
				text = "申请通过，请退货";
				break;
			case REFUND_MONET:
				text = "申请通过，等待退款";
				break;
			default:
				break;
		}
		return text;
	}
}
